package com.flying.acls.domain.service;

import org.springframework.util.AntPathMatcher;
import org.springframework.util.PathMatcher;

public class AntMatcher implements Matcher {
    private PathMatcher pathMatcher;

    public AntMatcher() {
        this.pathMatcher = new AntPathMatcher();
    }

    @Override
    public boolean match(String pattern, String value) {
        return pathMatcher.match(pattern, value);
    }

    @Override
    public boolean isPattern(String pattern) {
        return pathMatcher.isPattern(pattern);
    }
}
